<template>
  <div id="pictures">
    <ul
      class="pictures-list"
      :style="{
      marginTop:styles.marginTop+'px',
       marginBottom:styles.marginBottom+'px',
        marginLeft:styles.marginLR+'px',
         marginRight:styles.marginLR+'px',
    }"
    >
      <li
        :style="{
        borderRadius:styles.circle+'px',
        paddingTop:styles.paddingTop+'px'
      }"
        v-for="(v,i) in styles.imgUrl"
        :key="i"
      >
      <el-image :style="{width: '100%', height: styles.height+'px'}" :src="v.img==''?img:v.img" fit="cover"></el-image>

      </li>
    </ul>
  </div>
</template>

<script>
export default {
  name: "pictures",
  data() {
    return {
      img: require("../../../assets/img/blank1.png"),
    };
  },
  props: ["styles"],
};
</script>

<style lang="less" scoped>
@import url("../../../assets/css/base.less");
#pictures {
  .pictures-list {
    > li {
      width: 100%;
      overflow: hidden;
      > img {
        display: block;
      }
    }
    > li:nth-of-type(1) {
      padding-top: 0 !important;
    }
  }
}
</style>
